package com.insight.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import com.insight.modules.system.entity.SysDepartRoom;

import java.util.ArrayList;

/**
 * @author 李政
 * @ClassName SysDepartRoomMapper
 * @description: TODO
 * @datetime 2025年 04月 09日 14:57
 * @version: 1.0
 */
@Mapper
public interface SysDepartRoomMapper extends BaseMapper<SysDepartRoom> {

@Delete("<script>" +
        "delete from sys_depart_room where room_id in " +
        "<foreach collection='roomIdList' item='roomId' open='(' separator=',' close=')'>" +
        "#{roomId}" +
        "</foreach>" +
        "</script>")
void deleteByRoomIds(@Param("roomIdList") ArrayList<String> roomIdList);

}
